/**
 * uploadprofilephoto node file
 */

var service = function(id, file, options){
	this.id = id;
	this.file = file;
	this.success = options.success;
	this.error = options.error;
	this.upload();
};

service.prototype._error = function(code, message){
	if(typeof this.error == 'function') {
		this.error(code, message);
	}
};

service.prototype._success = function(data){
	if(typeof this.success == 'function') {
		this.success(data);
	}
};

service.prototype.check = function(nextStatement){
	var self = this;
	console.log(self.file);
};

service.prototype.upload = function(){
	var self = this;
	self.check(function(){
		
	});
};